package nanocast.apps.creator.modules.mediaWindow.events
{
	import flash.events.Event;
	
	public class MediaSelectionEvent extends Event
	{
		public static const CHANGE_SELECTED_MEDIATYPE:String = "changeSelectedMediaType"; 
		public static const REFRESH:String = "refresh"; 
		
		public var mediaType:String;
		
		public function MediaSelectionEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, mediaType:String=null)
		{
			super(type, bubbles, cancelable);
			
			this.mediaType = mediaType; 
		}
		
		public function getMediaType():String
		{
			return mediaType;	
		}
		
		override public function clone():Event
		{
			return new MediaSelectionEvent(type, bubbles, cancelable, mediaType);
		}
		
		override public function toString():String
		{
			return formatToString("MediaSelectionEvent", "type", "bubbles", "cancelable", "mediaType");
		}
	}
}